package com.bootdo.xarm.xserver;

import com.bootdo.common.controller.BaseController;
import com.bootdo.xarm.client.domain.Student;
import com.bootdo.xarm.client.service.ScoreModelService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/client/xserver/student")
public class StudentController extends BaseController {
    Logger logger = LoggerFactory.getLogger(StudentController.class);
    @Autowired
    private ScoreModelService scoreModelService;
    private String prefix = "client/xserver/student/";

    /**
     * 学生信息
     */
    @GetMapping
    @RequiresPermissions("client:student:student")
    public String student() {
        logger.info("访问student页面：======");
        return prefix + "list";
    }

    @GetMapping("/list")
    public List<Student> list() {
        List<Student> list = null;
        return list;
    }

}
